<template>
  <div>
    <svg :style="{ width, height }">
      <use :xlink:href="prefix + name" :fill="color"></use>
    </svg>
  </div>
</template>

<script setup lang="ts">
import { defineProps } from 'vue';

defineProps({

  name: String,
  prefix: {
    type: String,
    default: '#icon-',
  },
  color: {
    type: String,
    default: '',
  },
  width: {
    type: String,
    default: '16px',
  },
  height: {
    type: String,
    default: '16px',
  },

});
</script>

<script lang="ts">
export default {
  name: 'SvgIcon'
}
</script>

<style scoped lang="scss"></style>